﻿
namespace VASJ.Model
{
    public class DataContextFactory
    {
        public static KeToanDataContext CreateDataContext()
        {
            return new KeToanDataContext(ConnectionString);
        }

        public static string ConnectionString
        {
            get
            {
                return System.Configuration.ConfigurationManager.ConnectionStrings["KeToanConnectionString"].ConnectionString;
            }
        }
    }
}